<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="../templates/template.xhtml">

	<ui:define name="title">
	 	Legal Preparation Establishment Filing Page
	</ui:define>
	<ui:param name="page" value="home" />
	<ui:define name="header">
		<ui:include src="../header.xhtml" />
	</ui:define>

	<ui:define name="pageTitle">
		<script>
			currentmenu="createNewFilingPage";
		</script>
		<h:outputText value="Case Initiation"
			style="font-family:arial;
				   font-size:30px;
				   font-weight:bold;"/>	
	</ui:define>
	<ui:define name="body">

		<f:loadBundle basename="us.gaaoc.framework.webapp.util.userMessage" var="bundle" />

		<h:form id="uploadForm" enctype="multipart/form-data" method="POST">

			<!-- for look up -->
			<br />
			<div id="bodypanel" class="grouping">
			<br />
			<h:panelGrid width="100%" columns="5" styleClass="iCubed">
				<h:column> 
								Select Case Action : 
			    </h:column>
			    
			   <h:column>
					<h:selectOneMenu id="caseAction" size="1" value="#{filingDataUploadPage.caseAction}" binding="#{filingDataUploadPage.caseActionInput}" title="#{bundle.documentDescription}">
						<f:selectItems id="caseActionselectItem" value="#{filingDataUploadPage.caseActionDescriptionsItems}"  />
					</h:selectOneMenu>
				</h:column>
				
				<h:column>			
								Prepare Document for Filing
				</h:column>
				
				<h:column>
						<t:inputFileUpload id="upload"  value="#{filingDataUploadPage.myFile}" storage="file" required="true" />
				</h:column>
				
				<h:column>			
				<h:commandButton id="uploadFile" value="UPLOAD FILE"  action="#{filingDataUploadPage.uploadFile}" 	styleClass="buttonClass" title="#{bundle.uploadFileButton}" />
				</h:column>
				
			</h:panelGrid> 
			
			<p:message for="uploadFile"/>
			<br />
			</div>
			<br />
		</h:form>




		<p:panel id="basic" header="Case Particpant Information" rendered="#{filingDataUploadPage.renderListOfPersonsBtn}">
		<h:form>
			<div class="grouping">
				<h:outputText value="Custodial" />
				<h:panelGrid columns="5" width="100%">
					<h:dataTable id="DATATABLE_custodial" width="100%"
						value="#{filingDataUploadPage.cusPerson}" var="custodial"
						columnClasses="dataTableColumnClass,dataTableColumnClass,dataTableColumnClass,dataTableColumnClass,dataTableColumnClass">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Last Name" styleClass="subHeadingTextClass" />
							</f:facet>
							<h:outputText value="#{custodial.lastName}"
								styleClass="textFont75" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="First Name"
									styleClass="subHeadingTextClass" />
							</f:facet>
							<h:outputText value="#{custodial.firstName}"
								styleClass="textFont75" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Middle" styleClass="subHeadingTextClass" />
							</f:facet>
							<h:outputText value="#{custodial.middleName}"
								styleClass="textFont75" />
						</h:column>
					</h:dataTable>
				</h:panelGrid>
			</div>
			<div class="grouping">
				<h:outputText value="Non Custodial" />
				<h:panelGrid columns="5" width="100%">

					<h:dataTable id="DATATABLE_noncustodial" width="100%"
						value="#{filingDataUploadPage.nonCusPerson}" var="noncustodial"
						columnClasses="dataTableColumnClass,dataTableColumnClass,dataTableColumnClass,dataTableColumnClass,dataTableColumnClass">

						<h:column>
							<f:facet name="header">
								<h:outputText value="Last Name" styleClass="subHeadingTextClass" />
							</f:facet>
							<h:outputText value="#{noncustodial.lastName}"
								styleClass="textFont75" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="First Name"
									styleClass="subHeadingTextClass" />
							</f:facet>
							<h:outputText value="#{noncustodial.firstName}"
								styleClass="textFont75" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Middle" styleClass="subHeadingTextClass" />
							</f:facet>
							<h:outputText value="#{noncustodial.middleName}"
								styleClass="textFont75" />
						</h:column>
					</h:dataTable>
				</h:panelGrid>
			</div>
			<div class="grouping">
				<h:outputText value="Initiating Party Persons " />
				<h:panelGrid columns="5" width="100%">

					<h:dataTable id="DATATABLE_initiating" width="100%"
						value="#{filingDataUploadPage.initiatingPartyPersonsList}"
						var="initiating"
						columnClasses="dataTableColumnClass,dataTableColumnClass,dataTableColumnClass,dataTableColumnClass,dataTableColumnClass">

						<h:column>
							<f:facet name="header">
								<h:outputText value="Last Name" styleClass="subHeadingTextClass" />
							</f:facet>
							<h:outputText value="#{initiating.lastName}"
								styleClass="textFont75" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="First Name"
									styleClass="subHeadingTextClass" />
							</f:facet>
							<h:outputText value="#{initiating.firstName}"
								styleClass="textFont75" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Middle" styleClass="subHeadingTextClass" />
							</f:facet>
							<h:outputText value="#{initiating.middleName}"
								styleClass="textFont75" />
						</h:column>
					</h:dataTable>
				</h:panelGrid>
			</div>
		</h:form>
		</p:panel>



		<h:form>
			<h:column>
				<h:commandButton value="Save"
					action="#{filingDataUploadPage.gotoCaseDetailsPage}"
					styleClass="buttonClass"
					rendered="#{filingDataUploadPage.renderReviewBtn}" title="#{bundle.reviewFiling}"/>
			</h:column>
		</h:form>

	</ui:define>
</ui:composition>

</html>


